
// MIT License
// 
// Copyright (c) 2009-2017 Luca Piccioni
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// 
// This file is automatically generated

#pragma warning disable 649, 1572, 1573

// ReSharper disable RedundantUsingDirective
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;

using Khronos;

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable JoinDeclarationAndInitializer

namespace OpenGL
{
	public partial class Gl
	{
		/// <summary>
		/// [GL] Value of GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV symbol.
		/// </summary>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public const int MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0;

		/// <summary>
		/// [GL] Value of GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV symbol.
		/// </summary>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public const int MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1;

		/// <summary>
		/// [GL] Value of GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV symbol.
		/// </summary>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public const int VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2;

		/// <summary>
		/// [GL] Value of GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV symbol.
		/// </summary>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public const int GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3;

		/// <summary>
		/// [GL] Value of GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV symbol.
		/// </summary>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public const int FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4;

		/// <summary>
		/// [GL] glProgramBufferParametersfvNV: Binding for glProgramBufferParametersfvNV.
		/// </summary>
		/// <param name="target">
		/// A <see cref="T:int"/>.
		/// </param>
		/// <param name="bindingIndex">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="wordIndex">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="params">
		/// A <see cref="T:float[]"/>.
		/// </param>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public static void ProgramBufferParametersNV(int target, uint bindingIndex, uint wordIndex, float[] @params)
		{
			unsafe {
				fixed (float* p_params = @params)
				{
					Debug.Assert(Delegates.pglProgramBufferParametersfvNV != null, "pglProgramBufferParametersfvNV not implemented");
					Delegates.pglProgramBufferParametersfvNV(target, bindingIndex, wordIndex, @params.Length, p_params);
					LogCommand("glProgramBufferParametersfvNV", null, target, bindingIndex, wordIndex, @params.Length, @params					);
				}
			}
			DebugCheckErrors(null);
		}

		/// <summary>
		/// [GL] glProgramBufferParametersIivNV: Binding for glProgramBufferParametersIivNV.
		/// </summary>
		/// <param name="target">
		/// A <see cref="T:int"/>.
		/// </param>
		/// <param name="bindingIndex">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="wordIndex">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="params">
		/// A <see cref="T:int[]"/>.
		/// </param>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public static void ProgramBufferParametersINV(int target, uint bindingIndex, uint wordIndex, int[] @params)
		{
			unsafe {
				fixed (int* p_params = @params)
				{
					Debug.Assert(Delegates.pglProgramBufferParametersIivNV != null, "pglProgramBufferParametersIivNV not implemented");
					Delegates.pglProgramBufferParametersIivNV(target, bindingIndex, wordIndex, @params.Length, p_params);
					LogCommand("glProgramBufferParametersIivNV", null, target, bindingIndex, wordIndex, @params.Length, @params					);
				}
			}
			DebugCheckErrors(null);
		}

		/// <summary>
		/// [GL] glProgramBufferParametersIuivNV: Binding for glProgramBufferParametersIuivNV.
		/// </summary>
		/// <param name="target">
		/// A <see cref="T:int"/>.
		/// </param>
		/// <param name="bindingIndex">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="wordIndex">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="params">
		/// A <see cref="T:uint[]"/>.
		/// </param>
		[RequiredByFeature("GL_NV_parameter_buffer_object")]
		public static void ProgramBufferParametersINV(int target, uint bindingIndex, uint wordIndex, uint[] @params)
		{
			unsafe {
				fixed (uint* p_params = @params)
				{
					Debug.Assert(Delegates.pglProgramBufferParametersIuivNV != null, "pglProgramBufferParametersIuivNV not implemented");
					Delegates.pglProgramBufferParametersIuivNV(target, bindingIndex, wordIndex, @params.Length, p_params);
					LogCommand("glProgramBufferParametersIuivNV", null, target, bindingIndex, wordIndex, @params.Length, @params					);
				}
			}
			DebugCheckErrors(null);
		}

		internal static unsafe partial class Delegates
		{
			[RequiredByFeature("GL_NV_parameter_buffer_object")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glProgramBufferParametersfvNV(int target, uint bindingIndex, uint wordIndex, int count, float* @params);

			[RequiredByFeature("GL_NV_parameter_buffer_object")]
			[ThreadStatic]
			internal static glProgramBufferParametersfvNV pglProgramBufferParametersfvNV;

			[RequiredByFeature("GL_NV_parameter_buffer_object")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glProgramBufferParametersIivNV(int target, uint bindingIndex, uint wordIndex, int count, int* @params);

			[RequiredByFeature("GL_NV_parameter_buffer_object")]
			[ThreadStatic]
			internal static glProgramBufferParametersIivNV pglProgramBufferParametersIivNV;

			[RequiredByFeature("GL_NV_parameter_buffer_object")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glProgramBufferParametersIuivNV(int target, uint bindingIndex, uint wordIndex, int count, uint* @params);

			[RequiredByFeature("GL_NV_parameter_buffer_object")]
			[ThreadStatic]
			internal static glProgramBufferParametersIuivNV pglProgramBufferParametersIuivNV;

		}
	}

}
